﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Titul.Help.Models
{
    /// <summary>
    /// Вопрос в техподдержке
    /// </summary>
    public class Question : Neo4j.DataProvider.Neo4jBaseModel
    {
        public DateTimeOffset DateCreate { get; set; }

        [Display(Name="Email")]
        [DataType(DataType.EmailAddress)]
        [Required]
        public string Email { get; set; }

        [Display(Name = "Телефон")]
        [DataType(DataType.PhoneNumber)]
        public string Phone { get; set; }

        [Display(Name = "Текст сообщения")]
        [DataType(DataType.MultilineText)]
        [Required]
        [AllowHtml]
        public string Text { get; set; }
    }
}
